package cn.share.life.common.constant;

/**
 * 通用常量信息
 *
 * @author ruoyi
 */
public class Constants {
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * www主域
     */
    public static final String WWW = "www.";

    /**
     * RMI 远程方法调用
     */
    public static final String LOOKUP_RMI = "rmi:";

    /**
     * LDAP 远程方法调用
     */
    public static final String LOOKUP_LDAP = "ldap:";

    /**
     * LDAPS 远程方法调用
     */
    public static final String LOOKUP_LDAPS = "ldaps:";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;

    /**
     * 失败标记
     */
    public static final Integer FAIL = 500;

    /**
     * 图片url不存在
     */
    public static final int NOT_FOUND_URL = 1001;

    /**
     * 登录成功状态
     */
    public static final String LOGIN_SUCCESS_STATUS = "0";

    /**
     * 登录失败状态
     */
    public static final String LOGIN_FAIL_STATUS = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 注册
     */
    public static final String REGISTER = "Register";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";

    /**
     * 验证码有效期（分钟）
     */
    public static final long CAPTCHA_EXPIRATION = 2;

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * 自动识别json对象白名单配置（仅允许解析的包名，范围越小越安全）
     */
    public static final String[] JSON_WHITELIST_STR = {"org.springframework", "com.hopefound"};

    /**
     * 定时任务白名单配置（仅允许访问的包名，如其他需要可以自行添加）
     */
    public static final String[] JOB_WHITELIST_STR = {"com.hopefound.job.task"};

    /**
     * 定时任务违规的字符
     */
    public static final String[] JOB_ERROR_STR = {"java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
            "org.springframework", "org.apache", "com.hopefound.common.core.utils.file"};

    public static final String BUSINESS_PLATFORM = "business_platform";

    /**
     * pc端用户默认角色、默认部门
     */
    public static final String PC_USER_DEFAULT_DEPT_ROLE = "pc_user_default_dept_role";

    public static final String MINI_PROGRAMS_USER_DEFAULT_PASSWD = "sys.user.defaultPasswd";

    /**
     * 南阳上级区域编码
     */
    public static final String NAN_YANG_AREA_PARENT_CODE = "410000000000";

    /**
     * 南阳区域编码
     */
    public static final String NAN_YANG_AREA_CODE = "411300000000";

    /**
     * 南阳市辖区区域编码
     */
    public static final String NAN_YANG_CITY_AREA_CODE = "411301000000";
    /**
     * 零工市场 redis用户信息前缀
     */
    public static final String ZERO_GIG_PREFIX = "zero_system:market:";
    public static final String ODD_SERVICE_TYPE = "odd_service_type";

    public static final String ZERO_GIG_PREFIX_MARKET_ID = "zero_gig_prefix_market_id";


    /**
     * 求职招聘
     */
    public static final String JOB_FAIL_PREFIX = "job_fail:";

    //求职招聘行业
    public static final String JOB_FAIL_PREFIX_INDUSTRY = "job_fail:industry";

    //求职招聘职位分类
    public static final String JOB_FAIL_PREFIX_POSITION = "job_fail:position";


    //企业角色key
    public static final String PC_ENTERPRISE = "pc_enterprise";

    //大学生企业角色key
    public static final String PC_STUDENT_ENTERPRISE = "college_student_employment:guidanceRoom";

    //个人角色Key
    public static final String PC_INDIVIDUAL = "pc_individual";

    /**
     * @description:公益岗位-就业困难人员认定类型
     * @author: shiyuliang
     * @date: 2024/12/4 17:43
     * @param:
     * @return:
     **/
    public static final String DIFFICULT_TYPE = "difficult_type";
    /**
     * @description:公益岗位-单位信息Redis KEY
     * @author: shiyuliang
     * @date: 2024/12/10 13:19
     * @param:
     * @return:
     **/
    public static final String UNIT_INFO = "unit_info:";
    /**
     * @description:公益岗位-岗位信息Redis KEY
     * @author: shiyuliang
     * @date: 2024/12/10 13:19
     * @param:
     * @return:
     **/
    public static final String JOB_STATION = "job_station";

    //管理端用戶性別
    public static final String SYS_USER_SEX = "sys_user_sex";
    //个人证件类型
    public static final String PERSON_ID_CARD_TYPE = "pc_person_id_card_type";
    //个人证件有效期
    public static final String PERSON_ID_CARD_END = "pc_person_id_card_end";
    //民族
    public static final String NATION = "pc_nation";
    //就业状态
    public static final String EMPLOYMENT_STATUS = "pc_employment_status";
    //企业所属行业
    public static final String ENTERPRISE_INDUSTRY = "pc_enterprise_industry";
    //企业类型
    public static final String ENTERPRISE_TYPE = "pc_enterprise_type";

    public static final String FILE_TYPE = "file_type";
    //企业规模
    public static final String ENTERPRISE_SCALE = "enterprise_scale";
    //企业性质
    public static final String COMPANY_NATURE = "company_nature";
    //岗位性质
    public static final String POST_NATURE = "post_nature";

    //招聘会标签
    public static final String JOB_LABEL = "job_label";

    //到岗时间
    public static final String JOB_ARRIVAL_TIME = "job_arrival_time";

    //学历
    public static final String DEGREE = "degree";
    //证书等级
    public static final String CERTIFICATE_LEVEL = "certificate_level";
    //服务价格单位
    public static final String SETTLEMENT_METHOD = "settlement_method";
    //长短工
    public static final String LONG_SHORT_WORK = "long_short_work";
    //第三方认证密钥
    public static final String THREE_PARTY_AUTHENTICATION_KEY = "5F3C9EAB7D1F4A26B8D2ECA9F0123qwe";


    //薪资福利
    public static final String SALARY = "salary";
    //经验要求
    public static final String EXPERIENCE_REQUIRE = "experience_require";
    //求职状态
    public static final String JOB_SEEKING_STATUS = "job_seeking_status";
    //举报原因
    public static final String VIOLATION_REASON = "violation_reason";

    public static final String AREA = "市本级";

    //企业跳转职位详情页面
    public static final String WEB_SUFFIX = "employment/jobDetail?id=";

    public static final String CITY = "city";


    /**
     * 管理员角色权限标识
     */
    public static final String SUPER_ADMIN = "admin";
}
